package com.bsoft.gol.hcb.service.templateSheet.localTransService.impl;

import org.springframework.beans.factory.annotation.Autowired;
import com.bsoft.gol.hcb.service.templateSheet.localTransService.LocalTransService;
import com.bsoft.gol.hcb.service.templateSheet.rpc.IMcPreFilingRpcService;

import java.util.Map;
import org.springframework.stereotype.Service;

/**
 * 孕产妇登记建档服务
 */
@Service
public class McPreFilingService implements LocalTransService {

    @Autowired
    private IMcPreFilingRpcService mcPreFilingRpcService;

    @Override
    public String save(Map<String, Object> param) throws Exception {
        return mcPreFilingRpcService.savePreFiling(param);
    }

    @Override
    public Map<String, Object> getById(String recordId) throws Exception {
        return mcPreFilingRpcService.getPreFilingInfo(recordId);
    }
}
